package com.viewpager2.teach;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {
    private TextView tOne, tTwo, tThree;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        tOne = findViewById(R.id.main_tOne);
        tOne.setOnClickListener(v -> {
            startActivity(new Intent(this, TextOneActivity.class));
        });
        tTwo = findViewById(R.id.main_tTwo);
        tTwo.setOnClickListener(v -> {
            startActivity(new Intent(this, TextTwoActivity.class));
        });
        tThree = findViewById(R.id.main_tThree);
        tThree.setOnClickListener(v -> {
            startActivity(new Intent(this, TextThreeActivity.class));
        });
    }
}